Populate DataTable using DataReader in C#

FacebookTwitterLinkedInBelow is an example of how to populate a DataTable using a DataReader in C#. First, let’s create the database table as showing below: Design View SQL CREATE TABLE [dbo].[ProgrammingLanguage] ( [ID] INT NOT NULL, [LanguageName] NVARCHAR (50) NULL, PRIMARY KEY CLUSTERED ([ID] ASC) ); Then add a few records to that table: Now create … Continue reading Populate DataTable using DataReader in C#